// src/stores/user.js
import { defineStore } from 'pinia';

export const useUserStore = defineStore('user', {
  state: () => ({
    username: '' // 用于保存用户名
  }),
  actions: {
    setUsername(username) {
      this.username = username;
    }
  }
});